import { defineStore } from 'pinia'
export const useUserStore = defineStore('user', {
    state: () => {
        return {
            isLogin: false,
            userInfo:{
                username:'',
                password:'',
                nickname:'',
                id:'',
                image:'',
                status:1,
            }
        }
    },
    actions: {
        changeLogin(val:boolean) {
            this.isLogin = val
        },
        setUserInfo(val:any){
            this.userInfo = val;
        }
    },
})